# -*- coding: utf-8 -*-
# @Time    : 2020/6/17 0:16
# @Author  : dearMrYang
# @File    : news_extra.py
# @Software: PyCharm
import uuid

from django import template

register = template.Library()


@register.simple_tag
def form_id():
    """
    生成表单的ID, 用于存储图形验证码
    :return:
    """
    return uuid.uuid4().hex
